package cn.huiyunche.base.service.constant;

import cn.huiyunche.base.service.framework.utils.HYCUtils;

/**
 * Created by zhaoguixin on 2018/7/30.
 */
public class OtmUrlConstant {

    /**
     * OTM主机地址
     */
    private static final String OTM_PULL_HOST = HYCUtils.getConstantPropertiesLoader().getProperty("otmPullHost");

    /**
     * 查询单条订单
     */
    private static final String OTM_PULL_SINGLE_ORDER = "/handler/zlzc/queryOrderDetailByRs";

    /**
     * 查询订单编号
     */
    private static final String OTM_PULL_ORDER_NO = "/handler/zlzc/queryOrderByRs";

    /**
     * 推送订单派送信息到OTM系统url
     */
    private static final String OTM_PUSH_DISTRIBUTABLE_INFO = "/handler/zlzc/getDriverByRs";

    /**
     * 推送在途司机信息到TMS系统url
     */
    private static final String OTM_PUSH_DRIVER_LOCATION = "/handler/zlzc/getEnrouteByRs";

    /**
     * 推送订单到达信息到TMS系统url
     */
    private static final String OTM_PUSH_ARRIVAL_CONFIRMATION = "/handler/zlzc/getArriveByRs";


    /**
     * 拉取OTM订单确认回单信息url
     */
    private static final String OTM_PULL_ORDER_CONFIRM = "/handler/zlzc/getPodByRs";

    /**
     * 取消订单
     */
    private static final String OTM_PULL_ORDER_CANCEL = "/handler/zlzc/getDispatchCancelByRs";


    /**
     * 新版订单价格模型价格推到OTM
     */
    private static final String OTM_PUSH_ORDER_PRICE = "/handler/zlzc/getSavePriceByRs";

    /**
     * 确认发车
     */
    private static final String OTM_PULL_ORDER_DEPARTURE = "/handler/zlzc/getDispatchConfirmByRs";

    /**
     * 删除订单
     */
    private static final String OTM_PULL_ORDER_DELETE = "/handler/zlzc/deleteBsByRs";

    /**
     * 查询单条订单
     */
    public static final String PULL_SINGLE_ORDER = OTM_PULL_HOST + OTM_PULL_SINGLE_ORDER;

    /**
     * 查询订单orderNo
     */
    public static final String PULL_ORDER_NO = OTM_PULL_HOST + OTM_PULL_ORDER_NO;

    /**
     * The constant PUSH_DISTRIBUTABLE_INFO.
     * 推送订单派送信息到OTM系统url
     */
    public static final String PUSH_DISTRIBUTABLE_INFO = OTM_PULL_HOST + OTM_PUSH_DISTRIBUTABLE_INFO;

    /**
     * The constant PUSH_DRIVER_LOCATION.
     * 推送在途司机信息到TMS系统url
     */
    public static final String PUSH_DRIVER_LOCATION = OTM_PULL_HOST + OTM_PUSH_DRIVER_LOCATION;

    /**
     * The constant PUSH_ARRIVAL_CONFIRMATION.
     * 推送订单到达信息到TMS系统url
     */
    public static final String PUSH_ARRIVAL_CONFIRMATION = OTM_PULL_HOST + OTM_PUSH_ARRIVAL_CONFIRMATION;

    /**
     * The constant PULL_ORDER_CONFIRM.
     * 拉取TMS订单确认回单信息url
     */
    public static final String PULL_ORDER_CONFIRM = OTM_PULL_HOST + OTM_PULL_ORDER_CONFIRM;

    /**
     * The constant PULL_ORDER_CANCEL.
     * 取消订单url
     */
    public static final String PULL_ORDER_CANCEL = OTM_PULL_HOST + OTM_PULL_ORDER_CANCEL;

    /**
     * 推送价格到OTM
     */
    public static final String PUSH_ORDER_PRICE = OTM_PULL_HOST + OTM_PUSH_ORDER_PRICE;

    /**
     * 确认发运URL
     */
    public static final String PULL_ORDER_DEPARTURE = OTM_PULL_HOST + OTM_PULL_ORDER_DEPARTURE;


    /**
     * 删除订单
     */
    public static final String DELETE_ORDER = OTM_PULL_HOST+OTM_PULL_ORDER_DELETE;

}
